<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	AuctionProc auction = new AuctionProc();
	ArrayList avalibleGoodsList = auction.getAvalibleGoodsList();
%>    

<%@page import="styledaco.auction.AuctionProc"%>
<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.SoptHashMap"%>

<h2>현재 경매 가능한 물건</h2>
<div>
	<%if(avalibleGoodsList!=null && avalibleGoodsList.size()>0){%>
			<select onchange="javascript:setCurGoodsItem(this);">
				<option value="0">---경매물품선택---</option>
			<%for(int i = 0; i< avalibleGoodsList.size();i++){
				SoptHashMap curGoods = (SoptHashMap)avalibleGoodsList.get(i);%>
				
				<option value="<%=curGoods.get("GOODS_SEQ") %>">
					경매 물품 번호:<%=curGoods.get("GOODS_SEQ") %> / <%=curGoods.get("GOODS_NAME") %> / <%=curGoods.get("GOODS_COMPANY") %>
				</option>
				
			<%} %>
			</select>
	<%}else{ %>
		<div>등록된 경매 물건이 없습니다.</div>
	<%} %>
</div>